var _ID_ = "LoanID"
var MENU_HISTORY_URL = "/manager/admin/stateflow/statushistory.aspx?applid=";
var ON_CLICK_URL_SHOW_PURCHASE_BATCH = "/manager/Admin/BulkTransfer.aspx?BatchID=";
function showTracker_NS(el){showTracker(rsField(el,"TrackerID"));}
function showPurchaseBatch(el){
  var batchID = rsField(el,"BatchID")
	var showParams = ["status=no","resizable=yes","dialogWidth=800px","dialogHeight=600px"];
	//open("/manager/Tracking/Tracker.aspx?TrackerID="+trackerID)
	return w = showModelessDialog(ON_CLICK_URL_SHOW_PURCHASE_BATCH+batchID,{opener:top},showParams.join(";"))
}

function showRowMenu_NS(menu){
	try{var usixID = rsField(event.srcElement,"UsixID").Value;}catch(exc){}
	menu.add("Tracker Form","showTrackerForm(ce)");
	menu.add("Title","showTitle(ce)");
	if( usixID ) menu.add("Show Label","showLabel(ce)");
}
function showLabel(ce){
	open("/manager/common/PrintLabel.aspx?usixid="+rsField(ce,"UsixID"),"_blank",features());
}
function showTrackersOutlook(){showMenuFloater()}
function showTrackerRequestsOutlook(){showMenuFloater()}
function showMenuFloater(){
	try{showMenuFloater.w.close()}catch(e){}
	var url = "/manager/menu/menufloat.htm?";
	var servicePath = "servicePath="+escape("/manager/common/common.asmx");
	var func = escape(getFuncName(arguments.callee.caller).replace("show",""));
	var serviceFunc = "&serviceFunc="+func;
	var title = "&title="+func;
	showMenuFloater.w = showModelessDialog(url+servicePath+"&"+serviceFunc+title,{opener:top},dialogParams().join(";"));
	wins.push(showMenuFloater.w);
}
